<?php //STUDENT ?>



<table>

	<thead>
		<th>Nome</th>
		<th>Matrícula</th>
		<th>Data Matrícula</th>
		<th>Ativo</th>
		<th><th>
	<thead>
	
	<?php foreach($students as $student){ ?>
		<tr>
			<td><?php echo utf8_encode($student['NM_STUDENT']);?></td>
			<td><?php echo $student['CODE_STUDENT'];?></td>
			<td><?php echo date_format(date_create($student['DT_REGISTRATION']),"d/m/Y");?></td>
			<td><?php echo $student['IS_ACTIVE'] ? "Sim" : "Não" ;?></td>
			<td><?php echo $html->link("Editar", "/student/edit/" . $student['ID_STUDENT']) ;?></td>
			<td><?php echo $html->link("Excluir", "/student/delete/" . $student['ID_STUDENT']);?></td>
		<tr>
	<?php } ?>
</table>

<?php echo $html->link("Novo", "/student/add"); ?>


